#include <bits/stdc++.h>
using namespace std;
#define int long long

void solve() {
    string s;
    cin >> s;
    if(s == "YES") {
        cout << "YES\n";
    }else{
        cout << "NO\n";
    }
}

signed main() {
    int t;
    cin >> t;
    while(t--) solve();
    return 0;
}